package cn.xy.demo03;

public class MyTest {
    public static void main(String[] args) {
        Rent rent = new Host();
        ProxyInvocationHandler pih = new ProxyInvocationHandler();
        pih.setObject(rent);
        Host object = (Host) pih.getObject();
        object.rent();
    }
}
